import request from '@/utils/request'

// 查询流程子类配置列表
export function listProcessSub(query) {
    return request({
        url: '/flow/ProcessSub/list',
        method: 'get',
        params: query
    })
}

// 查询流程子类配置详细
export function getProcessSub(id) {
    return request({
        url: '/flow/ProcessSub/' + id,
        method: 'get'
    })
}

// 新增流程子类配置
export function addProcessSub(data) {
    return request({
        url: '/flow/ProcessSub',
        method: 'post',
        data: data
    })
}

// 修改流程子类配置
export function updateProcessSub(data) {
    return request({
        url: '/flow/ProcessSub',
        method: 'put',
        data: data
    })
}

// 删除流程子类配置
export function delProcessSub(id) {
    return request({
        url: '/flow/ProcessSub/' + id,
        method: 'delete'
    })
}
